package com.larissa.quiz;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.util.UUID;
@Entity
public class Question {
    @NonNull
    @PrimaryKey
    @ColumnInfo(name="id")
    private UUID mQuestionId;
    @ColumnInfo(name="questionAnswer")
    private boolean mQuestionAnswer;
    @ColumnInfo(name="questionText")
    private String mQuestionText;

    public Question(String text,boolean answer){
        mQuestionText=text;
        mQuestionAnswer=answer;
    }

    public Question(UUID mQuestionId,String mQuestionText,boolean mQuestionAnswer){
        this.mQuestionText=mQuestionText;
        this.mQuestionId=mQuestionId;
        this.mQuestionAnswer=mQuestionAnswer;
    }

    public UUID getQuestionId() {
        return mQuestionId;
    }

    public void setQuestionId(UUID questionId) {
        mQuestionId = questionId;
    }

    public String getQuestionText() {
        return mQuestionText;
    }

    public void setQuestionText(String questionText) {
        mQuestionText = questionText;
    }

    public boolean isQuestionAnswer() {
        return mQuestionAnswer;
    }

    public void setQuestionAnswer(boolean questionAnswer) {
        mQuestionAnswer = questionAnswer;
    }

}
